package com.morgankelly.action;

import java.util.Date;
import java.util.List;

import com.morgankelly.po.Blog;

@SuppressWarnings("serial")
public class IndexAction extends BaseAction {
    
	public String input() {
		
		//Init Blog List
		setBlogVOList(initBlogVOBySearchKey(""));
		
		initSideBar();
		return INPUT;
	}
	
	public String add() {

		initSideBar();
		return ADD;
	}
	
	private List<Blog> blogList;
	
	private String title;
	private Date createTime;
	private int accountID;
	private int categoryID;
	
	public List<Blog> getBlogList() {
		return blogList;
	}

	public void setBlogList(List<Blog> blogList) {
		this.blogList = blogList;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getAccountID() {
		return accountID;
	}

	public void setAccountID(int accountID) {
		this.accountID = accountID;
	}

	public int getCategoryID() {
		return categoryID;
	}

	public void setCategoryID(int categoryID) {
		this.categoryID = categoryID;
	}


}
